/*
 * DBStructDefines.h
 *
 *  Created on: 2015年1月27日
 *      Author: yulin724
 */

#ifndef COMMON_DBSTRUCTDEFINES_H_
#define COMMON_DBSTRUCTDEFINES_H_

//记录Publish EventID，每次Publish都要递增
#define Global_Publish_EventID "Global_Publish_EventID"

#define Publish_Table "Publish_Table"
#define PT_EventName "0"
#define PT_PublishTime "1"
#define PT_CleanTime "2"
#define PT_SubscribeTime "3" //上一次Subscribe的时间，DBCleaner需要根据这个来进行Clean
#define PT_FlagOpen "4"
#define PT_QueryTokenPassword "5"
#define PT_SubscribeToken "6"
#define PT_DID "7"

#define Subscribe_Table "Subscribe_Table"
#define ST_EventID "0"
#define ST_ReSubscribeTime "1"
#define ST_NotifyServerID "2"
#define ST_ToAddress "3"

#define POST_Table "Post_Table"
#define POST_EventID "0"
#define POST_PostTime "1"
#define POST_Message "2"

#endif /* COMMON_DBSTRUCTDEFINES_H_ */
